package com.example.emos.api.db.dao;

import com.example.emos.api.db.pojo.TbMeeting;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

@Mapper
public interface TbMeetingDao {
    public boolean searchMeetingMembersInSameDept(String uuid);
    public HashMap searchMeetingById(HashMap param);

    /**
     * 分页查询
     * @param param
     * @return
     */
    public ArrayList<HashMap> searchOfflineMeetingByPage(HashMap param);
    public long searchOfflineMeetingCount(HashMap param);

    /**
     *
     * @param param
     * @return
     */
    public int updateMeetingInstanceId(HashMap param);

    /**
     *
     * @param meeting
     * @return
     */
    public int insert(TbMeeting meeting);

    /**
     * 周日历的查询
     * @param param
     * @return
     */
    public ArrayList<HashMap> searchOfflineMeetingInWeek(HashMap param);
    public HashMap searchMeetingInfo(long id);
    public HashMap searchCurrentMeetingInfo(long id);

    /**
     * 删除会议
     * @param param
     * @return
     */
    public int deleteMeetingApplication(HashMap param);

//    线下会议模块

    /**
     * 查询
     * @param param
     * @return
     */
    public ArrayList<HashMap> searchOnlineMeetingByPage(HashMap param);
    public long searchOnlineMeetingCount(HashMap param);

    /**
     * 线上会议室参会人信息查询
     * @param param
     * @return
     */
    public ArrayList<HashMap> searchOnlineMeetingMembers(HashMap param);

    /**
     * 会议室签到
     * @param param
     * @return
     */
    public long searchCanCheckinMeeting(HashMap param);
    public int updateMeetingPresent(HashMap param);
}